﻿using System;
using HelloShared;

namespace HelloService
{
    public class HowdyService : IHelloService
    {
        #region Public Methods

        public string Greetings(string name)
        {
            Console.WriteLine("{1:s} Saying hello to {0}", name, DateTime.Now);
            return string.Format("Hello, {0}", name);
        }

        public DateTime Heartbeat()
        {
            Console.WriteLine("{0:s} Telling the time", DateTime.Now);
            return DateTime.Now;
        }

        #endregion
    }
}